package com.forenow.demo.demo18;

public class Test {
    public static void main(String[] args) {
        Company company=new Company();
        Employee manage=new Manage();
        manage.setName("经理");
        manage.setBalance(1540);  //余额
        Employee manage1=new Manage();
        manage1.setName("员工");
        manage1.setBalance(1200);
        company.salary(manage,5500);
        company.salary(manage1,4500);
        System.out.println(manage.getName()+" "+manage.getSal()+" "+manage.getBalance());
        System.out.println(manage1.getName()+" "+manage1.getSal()+" "+manage1.getBalance());
    }

}
